#ifndef SPARSEVECTORADDONS_HPP
#define SPARSEVECTORADDONS_HPP
// TODO
#include <iostream>
#include <type_traits>

/*!
 * \brief conservativeResize
 * \param size
 *
 * Only Supports column vectors for now
 *
 * TODO I am not sure its correct, as I do not know all use cases... It might
 * fail lets see
 *
 * Though it work for simple insert, TODO Can it be so simple, as SparseMatrix.h
 * conservativeResize has all considerations
 *
 * TODO What are the Eigen test cases that need to satisfied
 */
void conservativeResize(Index size) {

  static_assert(IsColVector, "Only Supports Column Vectors");

  if (this->rows() == size) {
    return;
  }

  // m_data.resize(size, 1);
  m_size = size;
}

#endif  // SPARSEVECTORADDONS_HPP
